# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=speech-dispatcher
pkgver=0.11.5
pkgrel=1
pkgdesc="Common high-level interface to speech synthesis"
url="https://freebsoft.org/speechd"
# s390x: blocked by espeak-ng
arch="all !s390x"
license="LGPL-2.1-or-later"
makedepends="
	espeak-ng-dev
	gettext
	glib-dev
	libdotconf-dev
	libsndfile-dev
	libtool
	pulseaudio-dev
	"
subpackages="$pkgname-lang $pkgname-dev $pkgname-doc"
source="https://github.com/brailcom/speechd/releases/download/$pkgver/speech-dispatcher-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-ibmtts=no \
		--with-kali=no \
		--with-baratinoo=no \
		--with-voxin=no \
		--without-flite
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
d6d880bce0ae5bc2a5d519ef7740c689ae8b4b0bb658379762810e4beae3e465a429fbe19f7c490e89db0ea6a36aedd4b2287ac9251b90059b5c2cb3c0dd8a28  speech-dispatcher-0.11.5.tar.gz
"
